


using Admin2505.Domain.Entityes;

namespace Admin2505.Domain.Entityes.App;


public class AppUserRole : EntityBase
{
    public Guid UserId {get;private set;}
    public AppUser User {get; private set;}=null!;

    public Guid RoleId {get; private set;}
    public AppRole Role {get; private set;} =null!;

    protected AppUserRole() { }

    public AppUserRole (AppUser user,AppRole role)
    {
        User=user;
        UserId=User.Id;
        Role=role;
        RoleId = role.Id;
    }
}
